<!DOCTYPE html>
<html>

<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="author" content="KSPHP" />
	<?php echo $this->tag->getTitle();?>
	<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
	<?php echo $this->tag->stylesheetLink("/webmis/themes/".WEBMIS_THEMES."/webmis.css");?>
	<?php echo $this->tag->stylesheetLink("/themes/admin/".APP_THEMES."/main.css");?>
	<?php echo $this->tag->javascriptInclude("/webmis/plugin/jquery/".JQUERY_NAME);?>
	<?php echo $this->tag->javascriptInclude("/webmis/jquery.webmis.js");?>
	<?php echo $this->tag->javascriptInclude("/themes/admin/".APP_THEMES."/main.js");?>
	<?php if(@$LoadCSS){ foreach($LoadCSS as $val){
		echo $this->tag->stylesheetLink("/themes/admin/".APP_THEMES."/css/".$val);
	}}?>
</head>

<body class="top_bg">
	<div class="top_body">
		<a href="<?php $this->url->get('../');?>" class="top_logo"></a>
		<ul class="top_nav">
<?php $MenusLeft =''; foreach ($Menus['Date'] as $val){
	$an = $val['id']==$Menus['FID']['FID1']?'nav_an1':'nav_an2';
	if($val['menus']){$MenusLeft = $val['menus'];}
?>
			<li><a href="<?php echo $this->url->get($val['url']);?>" class="<?php echo $an;?>"><em class="<?php echo $val['ico'];?>"></em><span><?php echo $val['title'];?></span></a></li>
<?php }?>
		</ul>
		<div class="top_link">
			<span class="uname"><?php echo $_SESSION['Admin']['uname'];?></span>
			<span class="icon"><em></em></span>
			<span class="info">
				<span class="ct">
					<?php echo $incLang->_('inc_department').': '.$_SESSION['Admin']['department'];?><br>
					<?php echo $incLang->_('inc_position').': '.$_SESSION['Admin']['position'];?>
				</span>
				<a href="<?php echo $this->url->get('SysChangePasswd');?>" class="btop"><?php echo $incLang->_('inc_changepwd');?></a>
				<a href="<?php echo $this->url->get('index/loginOut');?>" class="btop center"><?php echo $incLang->_('inc_logout');?></a>
			</span>
		</div>
	</div>
	<div class="ct_body">
		<div class="ct_left">
<?php foreach ($MenusLeft as $val1){
	$ico = $val1['ico']?'<em class="'.$val1['ico'].'"></em>':'';
?>
			<div class="left_title"><?php echo $ico.$val1['title'];?></div>
<?php if(isset($val1['menus'])){?>
			<ul class="left_list">
<?php foreach ($val1['menus'] as $val2){
	$ico = $val2['ico']?'<em class="'.$val2['ico'].'"></em>':'';
	$an = $val2['id']==$Menus['FID']['FID3']?'left_an1':'left_an2';
?>
				<li><a href="<?php echo $this->url->get($val2['url']);?>" class="<?php echo $an;?>"><?php echo $ico.'<span>'.$val2['title'].'</span>';?></a></li>
<?php }?>
			</ul>
<?php }}?>
		</div>
		<div class="ct_right">
<?php echo $this->getContent() ?>

		</div>
	</div>
<div id="base_url" style="display: none;"><?php echo $this->url->get();?></div>
<div id="IsMobile" style="display: none;"><?php echo $this->session->get('IsMobile');?></div>
<div id="getLang" style="display: none;"><?php echo $this->session->get('Lang');?></div>
<div id="getUrl" style="display: none;"><?php echo @$getUrl;?></div>
<?php $this->assets->outputJs(); ?>
<?php if(@$LoadJS){ foreach($LoadJS as $val){
echo $this->tag->javascriptInclude("/themes/admin/js/".$val);
}}?>
</body>
</html>